package my.jieh.tips.util.collection;

public class LinkedHashMapTest {

  public static void main(String... args){
    String[] name = {"name", "phone", "custid", "extended_key"};
    LinkedHashMapTest me = new LinkedHashMapTest();
    java.util.LinkedHashMap lm = new java.util.LinkedHashMap();
    java.util.HashMap hm = new java.util.HashMap();
    for(int i=0; i<name.length; i++){
      lm.put(name[i], name[i]);
      hm.put(name[i], name[i]);
    }
    for(Object v : lm.values()){
      System.out.println("lm:" + v);
    }
    for(Object v : hm.values()){
      System.out.println("hm:" + v);
    }
    System.out.println(lm.values());
    System.out.println(hm.values());
  }
}
